import { http } from '../request/indexIM.js'


//IM登录用户信息
export const imUsersSetting = params => {
	return http.get('/api/v1/users/setting', params)
}
//IM添加老师好友
export const imAddCreateByUser = params => {
	return http.post('/api/v1/talk/createByUser', params)
}
//IM登陆
export const imAuthLogin = params => {
	return http.post('/api/v1/auth/login', params)
}
//IM登陆
export const imtalkList = params => {
	return http.get('/api/v1/talk/list', params)
}
// IM聊天详情记录
export const imTalkRecords = params => {
	return http.get('/api/v1/talk/records', params)
}
// IM发送消息
export const imMessageText = params => {
	return http.post('/api/v1/talk/message/text', params)
}
// IM发送图片
export const imMessageImage = params => {
	return http.post('/api/v1/talk/message/image', params)
}
// IM上传文件一
export const imMultipartInitiate = params => {
	return http.post('/api/v1/upload/multipart/initiate', params)
}
// IM发送文件消息
export const imMessageFile = params => {
	return http.post('/api/v1/talk/message/file', params)
}